package cn.kgc.springcloud.gateway.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mosin
 * @version: v1.0  2022/8/24
 */
@RestController
@RequestMapping("gateway")
public class GatewayClientController {

    @Value("${server.port}")
    private Integer port;

    @RequestMapping("t1")
    public String test1(String color){
        return "GatewayClientController ok port:"+port+"color:"+color;
    }

    @RequestMapping("t2")
    public String test2(String color){
        return "GatewayClientController2 ok port:"+port+"color:"+color;
    }

}
